package rhc.taskSchedule.taskSchedule;

import java.util.List;

import rhc.taskSchedule.entity.Running;
import rhc.taskSchedule.entity.RunningStatus;

public interface BasicManageInterface {

	void createRunning(String runningId) throws Exception;
	
	/**获取所有正在运行id
	 * @return
	 * @throws Exception
	 */
	List<String> getAllRunningId() throws Exception;
	
	/**开始运行
	 * @throws Exception
	 */
	void run(String runningId) throws Exception;
	
	/**停止运行
	 * @throws Exception
	 */
	void stop(String runningId) throws Exception;
	
	/**暂停运行
	 * @throws Exception
	 */
	void pause(String runningId) throws Exception;
	
	/**恢复运行
	 * @param runningId
	 * @throws Exception
	 */
	void regain(String runningId) throws Exception;
	
	/**获取运行状态
	 * @return
	 * @throws Exception
	 */
	RunningStatus getRunStatus(String runningId) throws Exception;
	
	
}
